// components/showModal/showModal.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    showModal: {
      type: Boolean,
      value: true
    },
    title: {
      type: String,
      value: '提示'
    },
    modalMsg: {
      type: String,
      value: '多个人可以报名多次!报完名请点发群按钮!确认报名吗?'
    },
    id: {
      type: String,
      value: ''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {

    showCancelOrder: function () {
      this.setData({
        showModal: true
      })
    },
    modal_click_Hidden: function () {
      this.setData({
        showModal: false,
      })
    },
    // 确定
    Sure: function () {
      let data2 = {}
      if(this.data.id){
        data2.id = this.data.id
      }
      this.triggerEvent('sure',data2,{})
      this.setData({
        showModal: false,
      })
    },
  }
})